package com.wyf;

import com.wyf.config.IocConfig;
import com.wyf.dao.AccountDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Starter2 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(IocConfig.class);
        AccountDao accountDao = ac.getBean(AccountDao.class);
        accountDao.test();
    }
}
